#include<stdio.h>
#include<stdlib.h>
int main(int argc,char**argv){
      FILE *fp1;
      FILE *fp2;
      char*srcfile=argv[1];
      char*dstfile=argv[2];

    fp1 = fopen(srcfile,"r");

    fp2 = fopen(dstfile,"w");

   if(fp1==NULL||fp2==NULL){

      perror("FILE COPY ERROR!\n");

     return -1;

   }

  char ch=fgetc(fp1);

while((ch=fgetc(fp1))!=EOF){
   fputc(ch,fp2);
    }

   fclose(fp1);

   fclose(fp2);

}

